package org.soaism.testserver.service.rest;

import org.soaism.testserver.service.entities.*;

public class JourneyService implements IJourneyService {
	private IJourneyService delegate;

	public JourneyService() {
		this.delegate = new JourneyServiceImpl();
	}

	public IJourneyService getJourneyService() {
		return delegate;
	}

	public void setJourneyService(IJourneyService delegate) {
		this.delegate = delegate;
	}

	public GetLogResponse getJourney(int id) {
		return delegate.getJourney(id);
	}

	public NewLogResponse postJourney(Journey journey) {
		return delegate.postJourney(journey);
	}

	public ChangeLogResponse putJourney(int id, Journey journey) {
		return delegate.putJourney(id, journey);
	}

	public DeleteLogResponse deleteJourney(String id) {
		return delegate.deleteJourney(id);
	}

}
